package com.ams.entity;

import java.io.Serializable;
import java.sql.Timestamp;



import com.ams.util.Constants;
import com.ams.util.TimeFormat;


public class AssestDossier implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8967245323178089649L;


	private int assestDossierId;
	
	
	private Assest assest;
	
	/*@Transient
	private String bookbuildDateStr;*/
	
	private Timestamp bookbuildDate;
	
	private int depreciationMoons,preDepreciationMoons;
	
	private float salvageValueRate,totalFee,elsefee,salvageValue,yearDepreRate,monthDepreRate,totalDepre,remainValue;
	
	public AssestDossier(){
		
	}

	public int getAssestDossierId() {
		return assestDossierId;
	}

	public void setAssestDossierId(int assestDossierId) {
		this.assestDossierId = assestDossierId;
	}

	public Assest getAssest() {
		return assest;
	}

	public void setAssest(Assest assest) {
		this.assest = assest;
	}

	public Timestamp getBookbuildDate() {
		return bookbuildDate;
	}

	public void setBookbuildDate(Timestamp bookbuildDate) {
		this.bookbuildDate = bookbuildDate;
	}

	public int getDepreciationMoons() {
		return depreciationMoons;
	}

	public void setDepreciationMoons(int depreciationMoons) {
		this.depreciationMoons = depreciationMoons;
	}

	public int getPreDepreciationMoons() {
		return preDepreciationMoons;
	}

	public void setPreDepreciationMoons(int preDepreciationMoons) {
		this.preDepreciationMoons = preDepreciationMoons;
	}

	public float getSalvageValueRate() {
		return salvageValueRate;
	}

	public void setSalvageValueRate(float salvageValueRate) {
		this.salvageValueRate = salvageValueRate;
	}

	public float getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(float totalFee) {
		this.totalFee = totalFee;
	}

	public float getElsefee() {
		return elsefee;
	}

	public void setElsefee(float elsefee) {
		this.elsefee = elsefee;
	}

	public float getSalvageValue() {
		return salvageValue;
	}

	public void setSalvageValue(float salvageValue) {
		this.salvageValue = salvageValue;
	}

	public float getYearDepreRate() {
		return yearDepreRate;
	}

	public void setYearDepreRate(float yearDepreRate) {
		this.yearDepreRate = yearDepreRate;
	}

	public float getMonthDepreRate() {
		return monthDepreRate;
	}

	public void setMonthDepreRate(float monthDepreRate) {
		this.monthDepreRate = monthDepreRate;
	}

	public float getTotalDepre() {
		return totalDepre;
	}

	public void setTotalDepre(float totalDepre) {
		this.totalDepre = totalDepre;
	}

	public float getRemainValue() {
		return remainValue;
	}

	public void setRemainValue(float remainValue) {
		this.remainValue = remainValue;
	}

	public String getBookbuildDateStr() {
		return TimeFormat.translateTimestampToString(bookbuildDate, Constants.DATE_FORMAT);
	}

	public void setBookbuildDateStr(String bookbuildDateStr) {
		this.bookbuildDate=TimeFormat.translateStringToTimestamp(bookbuildDateStr, Constants.DATE_FORMAT);
	}
	
	
}
